/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.account.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Description 小程序端会员列表主页返回值
 * @Author zhaokw
 * @Date 11:14 2020\5\30 0030
 **/
@Data
@ApiModel(value = "小程序端会员列表主页返回值")
@Accessors(chain = true)
public class ApiMemberCardInfoVo {

    @ApiModelProperty(value = "会员id")
    private Long id;

    @ApiModelProperty(value = "会员卡Id")
    private Long memberCardInfoId;

    @ApiModelProperty(value = "店铺用户id")
    private String userId;

    @ApiModelProperty(value = "用户余额")
    private BigDecimal supplyBonus;

    @ApiModelProperty(value = "用户返利余额")
    private BigDecimal rebateBonus;

    @ApiModelProperty(value = "用户余额+用户返利余额总额")
    private BigDecimal supplyAndRebateBonus;

    @ApiModelProperty(value = "会员等级代码")
    private String rankCode;

    @ApiModelProperty(value = "会员等级名称")
    private String rankName;

    @ApiModelProperty(value = "小程序端主页状态：1-PC端开启会员-当前用户是会员，2-PC端开启会员-当前用户不是会员，3-PC端关闭会员-当前用户是会员，4-PC端关闭会员-当前用户不是会员")
    private Integer status;

    @ApiModelProperty(value = "会员到期时间")
    private LocalDateTime memberExpireTime;

    @ApiModelProperty(value = "会员卡注册状态 0未注册,1已注册  2-会员到期")
    private Integer state;

}
